home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 52
/
Amiga Format AFCD52 (Issue 136, May 2000).iso
/
-serious-
/
programming
/
other
/
evaluate
/
evaluate.h
< prev
next >
Wrap
Text File
|
2000-02-28
|
710b
|
14 lines
/* evaluate.h (C) 2000 Kyzer/CSG.
/* Released under the terms of the GNU General Public Licence version 2. */
int Calculate(char *string, long *intres, double *realres, int *error);
#define RESULT_OK 0 /* all OK */
#define ERROR_SYNTAX 2 /* invalid expression */
#define ERROR_VARNOTFOUND 3 /* variable not found */
#define ERROR_NOMEM 8 /* not enough memory available */
#define ERROR_DIV0 9 /* division by zero */
#define RESULT_INTEGER 0 /* result was an integer */
#define RESULT_REAL 1 /* result was a real */